import request from '@/utils/request';

export async function getCategoryList() {
    return request({
        url: '/api/v1/portal/category',
        method: 'get'
    });
}

export async function getPageInfo(id) {
    return request({
        url: `/api/v1/portal/category/page/${id}`,
        method: 'get'
    });
}

export async function getCategoryChild(id) {
    return request({
        url: `/api/v1/portal/category/child/${id}`,
        method: 'get'
    });
}
